<?php

namespace App\Models;

class IncreaseGoods extends Model
{
    protected $table = 'yf_increase_goods';
    protected $primaryKey = 'increase_goods_id';
    public $timestamps = false;
    protected $guarded = ['increase_goods_id'];

    public function increaseBase()
    {
        return $this->belongsTo(IncreaseBase::class, 'increase_id', 'increase_id');
    }

    public function goodsBase()
    {
        return $this->hasOne(GoodsBase::class, 'goods_id', 'goods_id');
    }
}
